package com.tansuo365.test1.bean.otherbean;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tansuo365.test1.bean.InfoData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 物料详细  绑定w_id 和o_id 用于连接树形菜单
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class DWuliao implements Serializable,InfoData {
    private Integer id;
    @ExcelProperty(value="大类",index=0)
    private String dalei; //大类
    @ExcelProperty(value="物料编码",index=1)
    private String wuliaobianma; //物料编码
    @ExcelProperty(value="名称规格",index=2)
    private String mingchengguige; //名称规格
    @ExcelProperty(value="单位",index=3)
    private String danwei;//单位
    @ExcelProperty(value="可回收",index=4)
    private String kehuishou; //是否可回收 (空瓶空桶)
    @ExcelProperty(value="回收项",index=5)
    private String huishouxiang;
    @ExcelProperty(value="备注",index=6)
    private String beizhu;
    @ExcelProperty(value="创建人",index=7)
    private String founder;
    //    @ExcelProperty(value="创建时间",index=8)
//    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createtime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatetime;

    private Integer p_id;

    private Integer state;

    private Integer w_id; //细分的项目id 一般绑定二级

    private Integer o_id; //one_id 和一级项目id绑定 物料类别id

    @Transient
    private String sort;
    @Transient
    private String order;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDalei() {
        return dalei;
    }

    public void setDalei(String dalei) {
        this.dalei = dalei;
    }

    public String getWuliaobianma() {
        return wuliaobianma;
    }

    public void setWuliaobianma(String wuliaobianma) {
        this.wuliaobianma = wuliaobianma;
    }

    public String getMingchengguige() {
        return mingchengguige;
    }

    public void setMingchengguige(String mingchengguige) {
        this.mingchengguige = mingchengguige;
    }

    public String getDanwei() {
        return danwei;
    }

    public void setDanwei(String danwei) {
        this.danwei = danwei;
    }

    public String getKehuishou() {
        return kehuishou;
    }

    public void setKehuishou(String kehuishou) {
        this.kehuishou = kehuishou;
    }

    public String getHuishouxiang() {
        return huishouxiang;
    }

    public void setHuishouxiang(String huishouxiang) {
        this.huishouxiang = huishouxiang;
    }

    public String getBeizhu() {
        return beizhu;
    }

    public void setBeizhu(String beizhu) {
        this.beizhu = beizhu;
    }

    public String getFounder() {
        return founder;
    }

    public void setFounder(String founder) {
        this.founder = founder;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getP_id() {
        return p_id;
    }

    public void setP_id(Integer p_id) {
        this.p_id = p_id;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Integer getW_id() {
        return w_id;
    }

    public void setW_id(Integer w_id) {
        this.w_id = w_id;
    }

    public Integer getO_id() {
        return o_id;
    }

    public void setO_id(Integer o_id) {
        this.o_id = o_id;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }
}